<template>
	<view>
		<view class="smart-panel-title">1.容器</view>
		<view class="smart-panel-h" @click="goDetailPage('view')">
			<text>view视图</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('scroll-view')">
			<text>scroll-view视图</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goDetailPage(e){
				if(typeof e=== 'string'){
					uni.navigateTo({
						url:'/pages/competents/'+e+'/'+e
					});
				} else {
					uni.navigateTo({
						url:e.url
					})
				}
			}
		}
	}
</script>

<style>

</style>